import { useRoutes } from "react-router-dom"
import routes from "./router/index"


let RouteConfig = () => {
    let Element = useRoutes(routes)
    return () => Element
}

export default RouteConfig